package com.freecloud.rpc.demo1.client;

import com.freecloud.rpc.demo1.service.QuerService;

/**
 * @Author: maomao
 * @Date: 2021/8/29 2:59 下午
 */
public class ClientMain {

    public static void main(String[] args) {
        RpcProxyClient rpcProxyClient = new RpcProxyClient();
        QuerService querService = rpcProxyClient.clientProxy(QuerService.class, "localhost", 8080);

        System.out.println("客户端接收远程结果：" + querService.query());
    }
}
